//
// Created by zhuyijun on 2021/8/18.
//

#ifndef BASE_MYTIME0_H
#define BASE_MYTIME0_H


class Time {
private:
    int hours;
    int minutes;
public:
    //无参构造函数
    Time();

    Time(int h, int m = 0);

    void AddMin(int m);

    void AddHr(int h);

    void Reset(int h = 0, int m = 0);

    Time Sum(const Time &t) const;

    /**
     * 运算符重载
     * @param t
     * @return
     */
    Time operator+(const Time &t) const;

    void Show() const;
};


#endif //BASE_MYTIME0_H
